package com.lyf.design.learn.pop.booksys;

import java.util.ArrayList;
import java.util.List;

/**
 * @author LYF
 * @date 2022/6/23
 */

// 类似一个结构体
class Book{
    // 无需体现封装性
    public int id;
    public String name;
}
public class BookLib {
    List<Book> bookList = new ArrayList<>();

    boolean addBook(Book book){
        return bookList.add(book);
    }



}
